import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    author: 'AdCoder',
    email: '17647309108@163.com',
    moduleName: 'Model',
    modelParentClass: 'Base',
    modelTableName: 'model',
    modelTableComment: '数据表名称',
    modelFileName: 'model',
    modelImpPkgList: null,
    modelFields: null,
    schemaFileName: null,
    schemaImpPkgList: null,
    schemaClassList: null,
    crudParentClassName: null,
    crudFileName: null,
    crudObjName: null,
    crudImpPkgList: null
  },
  getters: {
  },
  mutations: {
    changeAuthor (state, author) {
      state.author = author
    },
    changeEmail (state, email) {
      state.email = email
    },
    changeModuleName (state, moduleName) {
      state.moduleName = moduleName
    },
    changeModelParentClass (state, modelParentClass) {
      state.modelParentClass = modelParentClass
    },
    changeModelTableName (state, modelTableName) {
      state.modelTableName = modelTableName
    },
    changeModelTableComment (state, modelTableComment) {
      state.modelTableComment = modelTableComment
    },
    changeModelFileName (state, modelFileName) {
      state.modelFileName = modelFileName
    },
    changeModelImpPkgList (state, modelImpPkgList) {
      state.modelImpPkgList = modelImpPkgList
    },
    changeModelFields (state, modelFields) {
      state.modelFields = modelFields
    },
    changeSchemaFileName (state, schemaFileName) {
      state.schemaFileName = schemaFileName
    },
    changeSchemaImpPkgList (state, schemaImpPkgList) {
      state.schemaImpPkgList = schemaImpPkgList
    },
    changeSchemaClassList (state, schemaClassList) {
      state.schemaClassList = schemaClassList
    },
    changeCRUDParentClassName (state, crudParentClassName) {
      state.crudParentClassName = crudParentClassName
    },
    changeCRUDFileName (state, crudFileName) {
      state.crudFileName = crudFileName
    },
    changeCRUDObjName (state, crudObjName) {
      state.crudObjName = crudObjName
    },
    changeCRUDImpPkgList (state, crudImpPkgList) {
      state.crudImpPkgList = crudImpPkgList
    }
  },
  actions: {
  },
  modules: {
  }
})
